home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Full / NetObjects Fusion 9 Standard / NOF9_Full_EN.exe / data1.cab / FSI / Ecomm / lib / MappingUtil.js < prev    next >
Encoding:
Text File  |  2005-11-16  |  599 b   |  24 lines

  1. function NOF_EcommMappingUtil(){
  2.     this.__proto__ = NOF_EcommMappingUtil.prototype;
  3.     
  4.     var resourcePath  = "ecomm/properties/mapping";
  5.     var resource      = null;
  6.     
  7.     this.getResource = function getResource(){
  8.         if (resource == null){
  9.             resource = NOF.UTIL.ResourceBundle.getBundle(resourcePath, NOF.UTIL.DefaultLocale);
  10.         }
  11.         
  12.         return resource;
  13.     }
  14.     
  15.     this.GetDBFieldName = function GetDBFieldName( name ){
  16.         var ret = this.getResource().getProperty("displayeditems.dbfield." + name);
  17.     
  18.     return ret;
  19.     }
  20. }
  21.     
  22. NOF.__proto__.EcommMappingUtil = new NOF_EcommMappingUtil();
  23.     
  24.